package toubiao.domain.po.manage;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

/*@Entity
@Table(name = "servlet") //对应保存的数据库名称
@DynamicUpdate(true)	*/
public class PoServlet {

	/*private int id;
	
	private String servletUrl;
	
	private String name;
	
	private String description;
	
	private PoJspPage jspPage;

	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID")
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getServletUrl() {
		return servletUrl;
	}

	public void setServletUrl(String servletUrl) {
		this.servletUrl = servletUrl;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "jspPage_id")
	public PoJspPage getJspPage() {
		return jspPage;
	}

	public void setJspPage(PoJspPage jspPage) {
		this.jspPage = jspPage;
	}*/
	
	
}
